home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 1.iso / toolbox / src / exampleCode / opengl / GLUT / progs / contrib / Makefile.sgi < prev    next >
Encoding:
Makefile  |  1996-11-11  |  892 b   |  38 lines

  1. #! smake
  2. #
  3. # Copyright (c) Mark J. Kilgard, 1995.
  4. #
  5. include $(ROOT)/usr/include/make/commondefs
  6.  
  7. TOP = ../..
  8.  
  9. LN = ln -s
  10. MV = mv
  11. RM = -rm -rf
  12.  
  13. TARGETS = lineblend worms rings agv_example fractals hanoi hanoi2 \
  14.    gears noof moth text3d steam
  15.  
  16. GLUT = $(TOP)/lib/glut/libglut.a
  17. LLDLIBS = $(GLUT) -lGLU -lGL -lXmu -lXext -lX11 -lm
  18.  
  19. SRCS = lineblend.c worms.c rings.c fractals.c fracviewer.c agviewer.c \
  20.        agv_example.c hanoi.c hanoi2.c engine.c moth.c text3d.c steam.c
  21. OBJS = $(SRCS:.c=.o)
  22.  
  23. LCOPTS = -fullwarn -wlint,-f -woff 813,852,827,826 -I$(TOP)
  24. LDIRT = *~ *.bak *.pure
  25.  
  26. default : $(TARGETS)
  27.  
  28. agv_example: agv_example.o agviewer.o
  29.     $(CC) -o $@ $(CFLAGS) agv_example.o agviewer.o $(LDLIBS)
  30.  
  31. hanoi2: hanoi2.o engine.o
  32.     $(CC) -o $@ $(CFLAGS) hanoi2.o engine.o $(LDLIBS)
  33.  
  34. fractals: fractals.o fracviewer.o
  35.     $(CC) -o $@ $(CFLAGS) fractals.o fracviewer.o $(LDLIBS)
  36.  
  37. include $(COMMONRULES)
  38.